package org.itboys.advertisement.entity;

import org.mongodb.morphia.annotations.Indexed;
import org.itboys.mongodb.entity.BaseLongIdEntity;

import org.mongodb.morphia.annotations.Entity;

/**
 * 广告位
 * @author weisky
 *
 */
@Entity(value = "Adzone", noClassnameStored = true)
public class Adzone extends BaseLongIdEntity{

	private static final long serialVersionUID = -1084520133070873397L;

	/**
	 * key 唯一属性
	 */
	@Indexed(unique = true, dropDups = false)
	private String key;
	private String name;//广告位名称
	private String desc;//广告位描述
	private Integer isTimeBetween;//是否包时  1：是   2：否
	private Integer status = 1;//广告位状态 1:OK 2:关闭
	private String chargingMode;//计费模式 CPM CPS CPC CPA等等
	private Integer length; //长度
	private Integer width; //宽度
	private Integer isSelf; //是否自营  1:是   2：否
	private int fee; //费用 固定费用的时候填
	private String feeUnit; //计费单位

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Integer getIsTimeBetween() {
		return isTimeBetween;
	}
	public void setIsTimeBetween(Integer isTimeBetween) {
		this.isTimeBetween = isTimeBetween;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getChargingMode() {
		return chargingMode;
	}
	public void setChargingMode(String chargingMode) {
		this.chargingMode = chargingMode;
	}
	public Integer getLength() {
		return length;
	}
	public void setLength(Integer length) {
		this.length = length;
	}
	public Integer getWidth() {
		return width;
	}
	public void setWidth(Integer width) {
		this.width = width;
	}
	public Integer getIsSelf() {
		return isSelf;
	}
	public void setIsSelf(Integer isSelf) {
		this.isSelf = isSelf;
	}
	public int getFee() {
		return fee;
	}
	public void setFee(int fee) {
		this.fee = fee;
	}
	public String getFeeUnit() {
		return feeUnit;
	}
	public void setFeeUnit(String feeUnit) {
		this.feeUnit = feeUnit;
	}
	
}
